<template>
 <iframe id="template-iframe" ref="iframe" :src="src"  frameborder="0" width="100%" height="1024px" scrolling="auto" ></iframe>
 
</template>

<script>
//import md5 from "md5"
import api from '@/api'
import TwoStepCaptcha from '@/components/tools/TwoStepCaptcha'
import { mapActions } from 'vuex'
import { timeFix } from '@/utils/util'
import Vue from 'vue'
import { ACCESS_TOKEN, ENCRYPTED_STRING } from '@/store/mutation-types'
import { putAction, postAction, getAction } from '@/api/manage'
import { encryption, getEncryptedString } from '@/utils/encryption/aesEncrypt'
import store from '@/store/'
import { USER_INFO } from '@/store/mutation-types'




export default {
      data () {
      return {
          src: ''
      }
  },
    methods: {
          getRegionCode(){
            const that = this
            let userinfo = Vue.ls.get(USER_INFO);
            let  params = { 'enterpriseUscc': userinfo.enterpriseUscc}
            getAction('/cxm/cxmEnterprise/queryEnterpriseInfo',params).then(res=>{
           
           
                   that.src = 'https://dzwq.chexinmeng.com/districtGovernmentManager/networkManager/select.do?oneLevelRecordNo='+res.result.id
                   
                })
                
                
            
          } 
    },
    mounted () {
       this.getRegionCode()
          //this.iframeWin = this.$refs.iframe.contentWindow

    }
}

</script>

<style lang="less" scoped>
.user-layout-login {
  label {
    font-size: 14px;
  }

  .getCaptcha {
    display: block;
    width: 100%;
    height: 40px;
  }

  .forge-password {
    font-size: 14px;
  }

  button.login-button {
    padding: 0 15px;
    font-size: 16px;
    height: 40px;
    width: 100%;
  }

  .user-login-other {
    text-align: left;
    margin-top: 24px;
    line-height: 22px;

    .item-icon {
      font-size: 24px;
      color: rgba(0, 0, 0, 0.2);
      margin-left: 16px;
      vertical-align: middle;
      cursor: pointer;
      transition: color 0.3s;

      &:hover {
        color: #1890ff;
      }
    }

    .register {
      float: right;
    }
  }
}
#qrcode {
  width: 1.81rem;
  height: 1.81rem;
  padding: 0.15rem;
  background: #f1f1f1;
  /deep/img {
    width: 100%;
    height: 100%;
  }
}
</style>
<style>
.valid-error .ant-select-selection__placeholder {
  color: #f5222d;
}
</style>